'''
Created on Oct 28, 2010

@author: linh-cl
'''

class Category( object ):
  '''
  Note category
  '''
  def __init__( self, id = 0, name = '', parent = 0 ):
    '''
    Constructor
    '''
    self.id = id
    self.name = name
    self.parent = parent

  def get_id( self ):
    return self.__id


  def get_name( self ):
    return self.__name


  def get_parent( self ):
    return self.__parent


  def set_id( self, value ):
    self.__id = value


  def set_name( self, value ):
    self.__name = value


  def set_parent( self, value ):
    self.__parent = value


  def del_id( self ):
    del self.__id


  def del_name( self ):
    del self.__name


  def del_parent( self ):
    del self.__parent




  def __str__( self ):
    return self.get_name()
  id = property( get_id, set_id, del_id, "id's docstring" )
  name = property( get_name, set_name, del_name, "name's docstring" )
  parent = property( get_parent, set_parent, del_parent, "parent's docstring" )
